From 1ea1086b539c251caabfbe2737b4e6e9fca2dcae Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 20 Nov 2007 04:31:06 +0000 Subject: [PATCH] Improve error from xcalloc(). --- gpsbabel/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/util.c b/gpsbabel/util.c index fc3e74e21..a6f89c2b3 100644 --- a/gpsbabel/util.c +++ b/gpsbabel/util.c @@ -101,7 +101,7 @@ xcalloc(size_t nmemb, size_t size) #endif if (!obj) { - fatal("gpsbabel: Unable to allocate %ld bytes of memory.\n", (unsigned long) size); + fatal("gpsbabel: Unable to allocate %ld units of %ld bytes of memory.\n", (unsigned long) nmemb, (unsigned long) size); } return obj; -- 2.30.2